package com.gxa.eshop.common;

import java.io.Serializable;

/**
 * @author bill
 * @date 2022/8/10 15:21
 */
public class Result<T> implements Serializable {
    private Integer code;//业务返回码 0：成功 1:错误
    private String message;//消息
    private T data;
    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Result() {
        this.code=0;
        this.message="执行成功";
    }
    public Result(T data) {
        this.code=0;
        this.message="执行成功";
        this.data=data;
    }
}
